package com.hippoframework.bean.aware;
import com.hippoframework.bean.ApplicationContext;
import com.hippoframework.exception.BeansException;

/**
 * 实现此接口的bean，均会自动调用setApplicationContext方法，以获取当前applicationContext
 *
 * @author TylerW
 * @date 4/15/2020 4:51 PM
 */
public interface ApplicationContextAware extends Aware {

    /**
     * 设置ApplicationContext
     *
     * @param applicationContext applicationContext
     * @throws BeansException
     */
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
